package com.gaofans.nrpc.client.route.impl;

import com.gaofans.nrpc.client.route.RouterPredicate;

import java.net.URI;
import java.util.Objects;

/**
 * @author GaoFans
 */
public class StaticRouterPredicate implements RouterPredicate {

    public static final String STATIC_SCHEME = "static";

    @Override
    public boolean test(URI uri) {
        return Objects.requireNonNull(uri).getScheme().equalsIgnoreCase(STATIC_SCHEME);
    }
}
